<script setup lang="ts">
defineProps<{
  num: boolean
}>()

const emit = defineEmits<{
  (e: 'update:num', val: boolean): void
}>()

const Fn = () => {
  emit('update:num', false)
}
</script>

<template>
  <div>
    <h3>Sun - {{ num }}</h3>
    <button @click="Fn">按钮</button>
  </div>
</template>

<style scoped></style>
